<template>
	<view id="collectionDynamic">
		<view style="height: 40rpx;"/>
		<view class="classifyType"><classify :list="postsAllText" :postsAllTitle="title"></classify></view>
		<view class="shoucang">
			<u-icon name="star-fill" color="#fe6706" label="最近收藏"></u-icon>
		</view>
		<view>
			<dynamicList :list="list"></dynamicList>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				list: [{
					image: 'https://pnglog.com/Fo1L9H.jpg',
					loveFlag:false
				}],
				title:'全部分类',
				postsAllText: [{
						image: require("@/static/2.jpg"),
						text: '文字创作'
					},
					{
						image: require("@/static/6.jpg"),
						text: '技术分享'
					},
					{
						image: require("@/static/7.jpg"),
						text: '漫画绘画'
					},
					{
						image: require("@/static/2.jpg"),
						text: '短视频'
					},
					{
						image: require("@/static/6.jpg"),
						text: '音乐/博客'
					},
					{
						image: require("@/static/7.jpg"),
						text: '游戏'
					},
					{
						image: require("@/static/2.jpg"),
						text: '商品'
					},
					{
						image: require("@/static/6.jpg"),
						text: '其他'
					}
				],
			}
		}
	}
</script>

<style scoped lang="scss">
	#collectionDynamic{
		width: 100%;
		background: #f7f7f7;
	}
	.classifyType{
		width: 90%;
		margin: auto;
		padding-top: 20rpx;
		background: #fff;
		border-radius: 20rpx;
	}
	.shoucang{
		width: 90%;
		height: 80rpx;
		margin: auto;
		display: flex;
	}
</style>